#include <stdio.h>
#include <string.h>

int main() {
    long long target, length;
    scanf("%lld %lld", &target, &length);
    long long counter = target;
    int digitCount = 0;
    while (counter > 0) {
        digitCount++;
        counter /= 10;
    }
    for (int i = 0; i < length - digitCount; i++) {
        printf("0");
    }
    printf("%lld", target);
    return 0;
}

// 这道题不严谨，数能否取负，取负数时负号算不算一位也没说，会不会越界也全靠猜